﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DiySnake
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void PnlMap_Paint(object sender, PaintEventArgs e)
        {
            Panel panel = (Panel)sender;
            
            int mapWidth = panel.Width;
            int mapHeight = panel.Height;

            for (int rowLineIndex = 0; rowLineIndex < mapHeight - 10; rowLineIndex += 10 + 1)
            {
                e.Graphics.DrawLine(new Pen(ColorTranslator.FromHtml("#A6A6A6")), 0, rowLineIndex, mapWidth, rowLineIndex);
            }
        }
    }
}
